Optimal. Leaf size=70 \[ \frac{x (b B-A c)}{2 b^2 \left (b+c x^2\right )}+\frac{(b B-3 A c) \tan ^{-1}\left (\frac{\sqrt{c} x}{\sqrt{b}}\right )}{2 b^{5/2} \sqrt{c}}-\frac{A}{b^2 x} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0743364, antiderivative size = 70, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 24, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.167, Rules used = {1584, 456, 453, 205} \[ \frac{x (b B-A c)}{2 b^2 \left (b+c x^2\right )}+\frac{(b B-3 A c) \tan ^{-1}\left (\frac{\sqrt{c} x}{\sqrt{b}}\right )}{2 b^{5/2} \sqrt{c}}-\frac{A}{b^2 x} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1584
Rule 456
Rule 453
Rule 205
Rubi steps
\begin{align*} \int \frac{x^2 \left (A+B x^2\right )}{\left (b x^2+c x^4\right )^2} \, dx &=\int \frac{A+B x^2}{x^2 \left (b+c x^2\right )^2} \, dx\\ &=\frac{(b B-A c) x}{2 b^2 \left (b+c x^2\right )}-\frac{1}{2} \int \frac{-\frac{2 A}{b}-\frac{(b B-A c) x^2}{b^2}}{x^2 \left (b+c x^2\right )} \, dx\\ &=-\frac{A}{b^2 x}+\frac{(b B-A c) x}{2 b^2 \left (b+c x^2\right )}+\frac{(b B-3 A c) \int \frac{1}{b+c x^2} \, dx}{2 b^2}\\ &=-\frac{A}{b^2 x}+\frac{(b B-A c) x}{2 b^2 \left (b+c x^2\right )}+\frac{(b B-3 A c) \tan ^{-1}\left (\frac{\sqrt{c} x}{\sqrt{b}}\right )}{2 b^{5/2} \sqrt{c}}\\ \end{align*}
Mathematica [A] time = 0.032931, size = 70, normalized size = 1. \[ \frac{x (b B-A c)}{2 b^2 \left (b+c x^2\right )}+\frac{(b B-3 A c) \tan ^{-1}\left (\frac{\sqrt{c} x}{\sqrt{b}}\right )}{2 b^{5/2} \sqrt{c}}-\frac{A}{b^2 x} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.01, size = 85, normalized size = 1.2 \begin{align*} -{\frac{A}{{b}^{2}x}}-{\frac{Acx}{2\,{b}^{2} \left ( c{x}^{2}+b \right ) }}+{\frac{Bx}{2\,b \left ( c{x}^{2}+b \right ) }}-{\frac{3\,Ac}{2\,{b}^{2}}\arctan \left ({cx{\frac{1}{\sqrt{bc}}}} \right ){\frac{1}{\sqrt{bc}}}}+{\frac{B}{2\,b}\arctan \left ({cx{\frac{1}{\sqrt{bc}}}} \right ){\frac{1}{\sqrt{bc}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 0.927101, size = 447, normalized size = 6.39 \begin{align*} \left [-\frac{4 \, A b^{2} c - 2 \,{\left (B b^{2} c - 3 \, A b c^{2}\right )} x^{2} -{\left ({\left (B b c - 3 \, A c^{2}\right )} x^{3} +{\left (B b^{2} - 3 \, A b c\right )} x\right )} \sqrt{-b c} \log \left (\frac{c x^{2} + 2 \, \sqrt{-b c} x - b}{c x^{2} + b}\right )}{4 \,{\left (b^{3} c^{2} x^{3} + b^{4} c x\right )}}, -\frac{2 \, A b^{2} c -{\left (B b^{2} c - 3 \, A b c^{2}\right )} x^{2} -{\left ({\left (B b c - 3 \, A c^{2}\right )} x^{3} +{\left (B b^{2} - 3 \, A b c\right )} x\right )} \sqrt{b c} \arctan \left (\frac{\sqrt{b c} x}{b}\right )}{2 \,{\left (b^{3} c^{2} x^{3} + b^{4} c x\right )}}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.653096, size = 114, normalized size = 1.63 \begin{align*} - \frac{\sqrt{- \frac{1}{b^{5} c}} \left (- 3 A c + B b\right ) \log{\left (- b^{3} \sqrt{- \frac{1}{b^{5} c}} + x \right )}}{4} + \frac{\sqrt{- \frac{1}{b^{5} c}} \left (- 3 A c + B b\right ) \log{\left (b^{3} \sqrt{- \frac{1}{b^{5} c}} + x \right )}}{4} + \frac{- 2 A b + x^{2} \left (- 3 A c + B b\right )}{2 b^{3} x + 2 b^{2} c x^{3}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.45723, size = 84, normalized size = 1.2 \begin{align*} \frac{{\left (B b - 3 \, A c\right )} \arctan \left (\frac{c x}{\sqrt{b c}}\right )}{2 \, \sqrt{b c} b^{2}} + \frac{B b x^{2} - 3 \, A c x^{2} - 2 \, A b}{2 \,{\left (c x^{3} + b x\right )} b^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]